//密码长度不能小于6位


function fn() {
    //获取input值
    let user = document.getElementById('user').value
    let password = document.getElementById('password').value
    //获取长度
    let password1 = password.length

    if (password1 < 6) {
        alert('密码长度不能小于6位')
        return
    }
    alert('注册成功！')


}